/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xmlutils;

/**
 *
 * @author NoiR
 */
public class XMLAutoGenerator implements Runnable {

    XMLGenerator generator = new XMLGenerator();

    public XMLAutoGenerator() {
    }

    public void run() {
        try {
            // start generate
            generator.generateSongXML(); // ThuanNH
            generator.generateGenresXML(); // TanND
            generator.generateArtistsXML(); // TanND
            generator.generateUserXML(); // TungNT
            generator.generateAlbumsXML();//DinhNP
            generator.generatePlaylistsXML();//DinhNP
            // thread
            Thread.sleep(1000 * 60 * 60);
        } catch (Exception e) {
            System.out.println("Bug: " + e.getMessage());
        }
    }
}
